import { check, sleep } from 'k6';
import http from 'k6/http';

export let options={
	discardResponseBodies:true,
	scenarios:{
		my_test:{
			executor:'per-vu-iterations',
			vus:1,
			iterations:1,
			maxDuration:'3s'
		},
	},
};

export default function () {
  var r = http.get(`http://${__ENV.MY_HOSTNAME}/`);//此处是反引号
  check(r, {
    'status is 200': (r) => r.status === 200,
  });
  sleep(5);
}

